jQuery(function($) {

    $("button[name=success_button],button[name=warning_button]").click(cilck_button);//按钮点击，文章按钮有用率统计

});

/**
 * 文章按钮有用率统计
 * @returns {undefined}
 */
function cilck_button() {
    $("button[name=success_button],button[name=warning_button]").attr("disabled", true);
    var button_name = $(this).attr("name");
    if ("success_button" === button_name) {
        alert(button_name);
    } else if ("warning_button" === button_name) {
        alert(button_name);
    }

}